#include "widget.h"
#include "ui_widget.h"
#include <QDebug>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    ui->comboBox->addItem("麦辣鸡腿堡");
    ui->comboBox->addItem("巨无霸");
    ui->comboBox->addItem("双层牛堡");


    ui->comboBox_2->addItem("中薯条");
    ui->comboBox_2->addItem("麦乐鸡块");
    ui->comboBox_2->addItem("土豆泥");

    ui->comboBox_3->addItem("无糖可乐");
    ui->comboBox_3->addItem("可乐");
    ui->comboBox_3->addItem("雪碧");
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    //打印查看选择的内容
    qDebug() <<"汉堡：" << ui->comboBox->currentText();
    qDebug() <<"小食：" << ui->comboBox_2->currentText();
    qDebug() <<"饮料：" << ui->comboBox_3->currentText();

}
